<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/21 11:17
 * Desc: 登录
 */
abstract class Contract_Api_Member_Login
{
    use Trait_Api_Image;

    use Trait_Api_Response;

    /**
     * 用户账号登录
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function login_by_user(array $params):array;

    /**
     * 登录微信小程序
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function login_by_mini_program(array $params):array;

    /**
     * 微信小程序获取当前用户的手机号码
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function get_phone_by_mini_program(array $params):array;

    /**
     * 头条小程序登陆
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function login_by_toutiao(array $params):array;

    /**
     * 头条小程序登陆
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function get_phone_by_toutiao_program(array $params):array;

    /**
     * 支付宝小程序
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function login_by_alipay(array $params):array;

    /**
     * 通过手机号登录（'wechat', 'h5', 'toutiao', 'zhifubao'）
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function login_by_phone(array $params):array;
}